#!/usr/bin/env python
# coding: utf-8

from datetime import date

today = date.today()
print(today, type(today)) #2017-09-19 <class 'datetime.date'>

year = today.year
print(year, type(year))   #2017 <class 'int'>
month = today.month
print(month, type(month))  #9 <class 'int'>
day = today.day
print(day, type(day))     #19 <class 'int'>

ctime = today.ctime()
print(ctime, type(ctime))  #Tue Sep 19 00:00:00 2017 <class 'str'>

any_day = today.replace(day=20)
print(any_day, type(any_day)) #2017-09-20 <class 'datetime.date'>

one_day = date.resolution
print(one_day, type(one_day)) #1 day, 0:00:00 <class 'datetime.timedelta'>

tomorrow = today + one_day
print(tomorrow)  #2017-09-20

the_day_after_tomorrow = today + one_day*2
print(the_day_after_tomorrow)  #2017-09-21




